package com.ruoyi.core.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.core.domain.ClientProduct;

/**
 * client_productMapper接口
 * 
 * @author ruoyi
 * @date 2020-09-28
 */
public interface ClientProductMapper 
{
    /**
     * 查询client_product
     * 
     * @param id client_productID
     * @return client_product
     */
    public ClientProduct selectClientProductById(Long id);

    /**
     * 查询client_product列表
     * 
     * @param clientProduct client_product
     * @return client_product集合
     */
    public List<ClientProduct> selectClientProductList(ClientProduct clientProduct);

    /**
     * 新增client_product
     * 
     * @param clientProduct client_product
     * @return 结果
     */
    public int insertClientProduct(ClientProduct clientProduct);

    /**
     * 修改client_product
     * 
     * @param clientProduct client_product
     * @return 结果
     */
    public int updateClientProduct(ClientProduct clientProduct);

    /**
     * 删除client_product
     * 
     * @param id client_productID
     * @return 结果
     */
    public int deleteClientProductById(Long id);

    /**
     * 批量删除client_product
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteClientProductByIds(Long[] ids);

    ClientProduct selectByProductName(String name);

    List<Map<String, Object>> findByClientUserId(Long clientUserId);

    List<Map<String, Object>> selectSimpleClientProductList(ClientProduct clientProduct);

    List<ClientProduct> selectByIds(List<Long> productIds);
}
